package oop2.Task2;

public class Tractor {
    int load;   //载重
    int volume; //体积

    public Tractor(int load, int volume) {
        this.load = load;
        this.volume = volume;
    }

    public void show() {
        System.out.println("拖拉机载重量:" + load + "吨,体积:" + volume);
    }

    public void start() {
        System.out.println("拖拉机启动了");
    }

    public void speedUp() {
        System.out.println("拖拉机加速了");
    }
}
